package com.jack.lib.test.init

import android.app.Activity
import android.app.Application
import android.content.Context
import android.content.Intent
import android.graphics.PixelFormat
import android.net.Uri
import android.os.Build
import android.provider.Settings
import android.view.Gravity
import android.view.WindowManager
import androidx.startup.Initializer
import com.blankj.utilcode.util.AppUtils
import com.blankj.utilcode.util.Utils
import com.jack.lib.core.ext.MM
import com.jack.lib.core.ext.gone
import com.jack.lib.core.ext.visible
import com.jack.lib.test.view.GlobalView
import java.util.*


/**
 * author : chong.huang
 * create : 2021/12/29
 * desc   :
 */
class AppInitializer : Initializer<Any> {
    override fun create(context: Context): Any {
        if (context is Application) {
            init(context)
        }
        return "null"
    }

    override fun dependencies(): MutableList<Class<out Initializer<*>>> {
        return Collections.emptyList()
    }

    private fun init(app: Application) {
        Floating.init(app)
    }
}